{literal}
<script type="text/javascript">
    tinyMCE.init({
        // General options
        mode : "exact",
        elements : "pro_descripcion, pro_restriccion, pro_meta",
        theme : "advanced",
        skin : "o2k7",
        //skin_variant : "black",
        skin_variant : "silver",

        /*plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
         *plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

            // Theme options
            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",*/

        plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

        // Theme options
        theme_advanced_buttons1 : "bold,italic,underline,|,justifyfull,styleselect",
        theme_advanced_buttons2 : "pastetext,pasteword,|,undo,redo,|,bullist,|,link,unlink,image,code,",
        theme_advanced_buttons3 : "tablecontrols",
        //theme_advanced_buttons4 : "insertfile",
        theme_advanced_buttons4 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        height : "250",
        theme_advanced_resizing : true
    });
</script>
{/literal}
<h2 class="span contenttitle w-98">Administrador de Productos</h2>
<div class="span adm_datahead">
    <a class="adm_btn span adm_btn2" href="{$smarty.const.WEB_ROOT}/admin/productos">Productos</a>
    <a class="adm_btn span adm_btn2" href="{$smarty.const.WEB_ROOT}/admin/productos/nuevo-producto">Nuevo Producto</a>
    <a class="adm_btn span adm_btn2" href="{$smarty.const.WEB_ROOT}/admin/productos/eliminar-producto">Eliminados</a>
</div>
<p class="titulo">Actualizar Producto</p>
<p class="subtitulo">Ingresar Datos</p>
<form class="forminsert" action="{$smarty.const.WEB_ROOT}/admin/productos/svc/actualizar-producto/{$producto.pro_id}" method="post" enctype="multipart/form-data">
    <table class="stats">
        <tr>
            <td class="rig">Nombre : </td>
            <td class="lef">
                <input type="text" name="pro_nombre" value="{$producto.pro_nombre}" class="text w-40 span"/>
                <p class="error">{$error.pro_nombre}</p>
            </td>
        </tr>
        <tr>
            <td class="rig">Descripción : </td>
            <td class="lef">
                <textarea name="pro_descripcion" id="pro_descripcion" >{$producto.pro_descripcion}</textarea>
                <p class="error">{$error.pro_descripcion}</p>
            </td>
        </tr>
        <tr>
            <td class="rig">
                {if $producto.pro_id eq $id} 
                    Características
                {else}
                    Restricción : 
                {/if}
            </td>
            <td class="lef">
                <textarea name="pro_restriccion" id="pro_restriccion" >{$producto.pro_restriccion}</textarea>
                <p class="error">{$error.pro_restriccion}</p>
            </td>
        </tr>
        {if $producto.pro_id eq $id}
        <tr>
            <td class="rig">Meta :</td>
            <td class="lef">
                <textarea name="pro_meta" id="pro_meta" >{$producto.pro_meta}</textarea>
                <!--p class="error">{$error.pro_meta}</p-->
            </td>
        </tr>
        {/if}
        <tr>
            <td class="rig">Precio Soles S/. :</td>
            <td class="lef">
                <input type="text" name="pro_precio_s" value="{$producto.pro_precio_s}" class="text w-10 span"/>
                <p class="error">{$error.pro_precio_s}</p>
            </td>
        </tr>
        {if $producto.pro_id eq $id}
        <tr>
            <td class="rig">Stock :</td>
            <td class="lef">
                <input type="text" name="pro_stock" value="{$producto.pro_stock}" class="text w-3 span" maxlength="4"/>
                <!--p class="error">{$error.pro_stock}</p-->
            </td>
        </tr>
        {/if}
        <tr>
            <td class="rig"></td>
            <td class="lef"><img src="{$producto.imagen}" /></td>
        </tr>
        {if $producto.pro_id eq $id}
        <tr>
            <td class="rig">Foto Portada:</td>
            <td class="lef"><input type="file" name="imgMedio" class="span"/> (300 × 300)</td>
        </tr>
        {/if}
        <tr>
            <td class="rig">Foto Principal JPG:</td>
            <td class="lef"><input type="file" name="imagen" class="span"/> (450 × 450)</td>
        </tr>
        <tr>
            <td class="rig">Foto 2 JPG:</td>
            <td class="lef"><input type="file" name="img2" class="span"/> (450 × 450)</td>
        </tr>
        <tr>
            <td class="rig">Foto 3 JPG:</td>
            <td class="lef"><input type="file" name="img3" class="span"/> (450 × 450)</td>
        </tr>
        <tr>
            <td class="rig">Foto 4 JPG:</td>
            <td class="lef"><input type="file" name="img4" class="span"/> (450 × 450)</td>
        </tr>
    </table>
    <table class="stats">
        <tr>
            <td class="rig"></td>
            <td class="lat">
                <input type="submit" name="btn_submit" value="Guardar" class="adm_btn" />
            </td>
        </tr>
    </table>
</form>
<div class="span adm_datafooter w-98">
    {$footermsg}{$navegacion}
</div>